﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SocialNetwork.Models;
namespace SocialNetwork.Controllers
{
    public class FotoController : Controller
    {
        //
        // GET: /Foto/

        public ActionResult Index()
        {
            UserRepository rep = new UserRepository();
            //User currentUser = rep.GetCurrentUser();
            var model = new FotoModel(rep.GetUser("sm1").Id);
            return View(model);//ya zaxardkoduv, bo nemayu GetCurrentUser
        }

        

    }
}
